Drop the cairo-recording debug flag
authorMatthias Clasen <mclasen@redhat.com>
Sat, 13 Jan 2018 01:38:26 +0000 (20:38 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 14 Jan 2018 22:05:04 +0000 (17:05 -0500)
It is not very useful. The cairo-image option on the
other hand is has been useful in tracking down problems
in the past, so we'll keep it.

gdk/gdk.c
gdk/gdkinternals.h
gdk/gdkwindow.c
gtk/inspector/visual.c
gtk/inspector/visual.ui

index f515d39fe2639e1bac79b8270eca67347f6d32e2..0b187851960440ef003bfb819e356bf99b316c9b 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -156,8 +156,7 @@ static const GDebugKey gdk_debug_keys[] = {
   { "gl-gles",         GDK_DEBUG_GL_GLES },
   { "vulkan-disable",  GDK_DEBUG_VULKAN_DISABLE },
   { "vulkan-validate", GDK_DEBUG_VULKAN_VALIDATE },
-  { "cairo-image",     GDK_DEBUG_CAIRO_IMAGE },
-  { "cairo-recording", GDK_DEBUG_CAIRO_RECORDING }
+  { "cairo-image",     GDK_DEBUG_CAIRO_IMAGE }
 };
 #endif
 
index 22ae55c1942f8b4ddab2ea87e12d781f1cbfd728..d406f5d5ef4c7869f2a8177ef8088e3c6c2bd149 100644 (file)
@@ -77,8 +77,7 @@ typedef enum {
   GDK_DEBUG_GL_GLES         = 1 << 16,
   GDK_DEBUG_VULKAN_DISABLE  = 1 << 17,
   GDK_DEBUG_VULKAN_VALIDATE = 1 << 18,
-  GDK_DEBUG_CAIRO_IMAGE     = 1 << 19,
-  GDK_DEBUG_CAIRO_RECORDING = 1 << 20
+  GDK_DEBUG_CAIRO_IMAGE     = 1 << 19
 } GdkDebugFlags;
 
 extern GList            *_gdk_default_filters;
index f29e114dba6c78b34cb12b901add7986308dddbe..6641c122afacca2e14cbf7493ddd0450cf3740ab 100644 (file)
@@ -5770,13 +5770,7 @@ gdk_window_create_similar_surface (GdkWindow *     window,
   sx = sy = 1;
   cairo_surface_get_device_scale (window_surface, &sx, &sy);
 
-  if (GDK_DISPLAY_DEBUG_CHECK (window->display, CAIRO_RECORDING))
-    {
-      cairo_rectangle_t rect = { 0, 0, width * sx, height *sy };
-      surface = cairo_recording_surface_create (content, &rect);
-      cairo_surface_set_device_scale (surface, sx, sy);
-    }
-  else if (GDK_DISPLAY_DEBUG_CHECK (window->display, CAIRO_IMAGE))
+  if (GDK_DISPLAY_DEBUG_CHECK (window->display, CAIRO_IMAGE))
     {
       surface = cairo_image_surface_create (content == CAIRO_CONTENT_COLOR ? CAIRO_FORMAT_RGB24 :
                                             content == CAIRO_CONTENT_ALPHA ? CAIRO_FORMAT_A8 : CAIRO_FORMAT_ARGB32,
index a4ce3fb9f59d62f4bf5369cde0cafdce65c86c1e..9e2ccbf7b70a85a6e93492b1a243d57aa53595d4 100644 (file)
@@ -788,8 +788,6 @@ init_rendering_mode (GtkInspectorVisual *vis)
 
   if (flags & GDK_DEBUG_CAIRO_IMAGE)
     mode = 1;
-  else if (flags & GDK_DEBUG_CAIRO_RECORDING)
-    mode = 2;
 
   gtk_combo_box_set_active (GTK_COMBO_BOX (vis->priv->rendering_mode_combo), mode);
 }
@@ -803,11 +801,9 @@ rendering_mode_changed (GtkComboBox        *c,
 
   mode = gtk_combo_box_get_active (c);
 
-  flags = flags & ~(GDK_DEBUG_CAIRO_IMAGE | GDK_DEBUG_CAIRO_RECORDING);
+  flags = flags & ~GDK_DEBUG_CAIRO_IMAGE;
   if (mode == 1)
     flags = flags | GDK_DEBUG_CAIRO_IMAGE;
-  else if (mode == 2)
-    flags = flags | GDK_DEBUG_CAIRO_RECORDING;
 
   gdk_display_set_debug_flags (gdk_display_get_default (), flags);
 }
index 52223e78295c791c146bcad6736db81079ea4f2c..a40c7ef39490b86cd1ce48fee65626c28df6ed56 100644 (file)
                             <items>
                               <item translatable="yes" id="similar">Similar</item>
                               <item translatable="yes" id="image">Image</item>
-                              <item translatable="yes" id="recording">Recording</item>
                             </items>
                           </object>
                         </child>